package com.memory.dao;

import com.memory.pojo.User;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

/**
 * ClassName: UserDao
 * Package: com.memory.dao
 * Description:
 *
 * @Author Memory
 * @Create 2024/8/14 14:32
 * @Version 1.0
 */
public interface UserDao {
    public List<User> selectAll() throws SQLException;
    // public void selectAll() throws SQLException;

    public List<User> selectById(User user) throws SQLException;

    public void insert(User user) throws SQLException;

    public void update(User user) throws SQLException;

    public void delete(int id) throws SQLException;
}
